package com.sinven.entity;

import javax.persistence.*;

/**
 * NideshopAddress entity. @author MyEclipse Persistence Tools
 */
/**
 * 李志伟
 * 反向生成
 */

@Entity
@Table(name = "nideshop_address", catalog = "csf")
public class Address implements java.io.Serializable {

    // Fields

    private Integer id;
    private Integer userId;
    private String userName;
    private String telNumber;
    private String postalCode;
    private String nationalCode;
    private String provinceName;
    private String cityName;
    private String countyName;
    private String detailInfo;
    private Integer isDefault;

    // Constructors

    /** default constructor */
    public Address() {
    }

    /** full constructor */
    public Address(Integer userId, String userName, String telNumber,
                           String postalCode, String nationalCode, String provinceName,
                           String cityName, String countyName, String detailInfo,
                           Integer isDefault) {
        this.userId = userId;
        this.userName = userName;
        this.telNumber = telNumber;
        this.postalCode = postalCode;
        this.nationalCode = nationalCode;
        this.provinceName = provinceName;
        this.cityName = cityName;
        this.countyName = countyName;
        this.detailInfo = detailInfo;
        this.isDefault = isDefault;
    }

    // Property accessors
    @Id
    @GeneratedValue
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "user_id")
    public Integer getUserId() {
        return this.userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Column(name = "user_name", length = 50)
    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Column(name = "tel_number", length = 60)
    public String getTelNumber() {
        return this.telNumber;
    }

    public void setTelNumber(String telNumber) {
        this.telNumber = telNumber;
    }

    @Column(name = "postal_Code", length = 50)
    public String getPostalCode() {
        return this.postalCode;
    }

    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }

    @Column(name = "national_Code", length = 50)
    public String getNationalCode() {
        return this.nationalCode;
    }

    public void setNationalCode(String nationalCode) {
        this.nationalCode = nationalCode;
    }

    @Column(name = "province_Name", length = 50)
    public String getProvinceName() {
        return this.provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    @Column(name = "city_Name", length = 50)
    public String getCityName() {
        return this.cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    @Column(name = "county_Name", length = 50)
    public String getCountyName() {
        return this.countyName;
    }

    public void setCountyName(String countyName) {
        this.countyName = countyName;
    }

    @Column(name = "detail_Info", length = 120)
    public String getDetailInfo() {
        return this.detailInfo;
    }

    public void setDetailInfo(String detailInfo) {
        this.detailInfo = detailInfo;
    }

    @Column(name = "is_default")
    public Integer getIsDefault() {
        return this.isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

}